package cn.tedu.ivos.vehicle.mapper;

import cn.tedu.ivos.vehicle.pojo.dto.VehicleQuery;
import cn.tedu.ivos.vehicle.pojo.dto.VehicleSaveParam;
import cn.tedu.ivos.vehicle.pojo.entity.Vehicle;
import cn.tedu.ivos.vehicle.pojo.vo.VehicleVO;
import org.springframework.stereotype.Repository;

import java.util.List;
/*@Repository让 Spring 能够自动扫描并识别这个接口为数据访问组件*/
@Repository
public interface VehicleMapper {
    List<VehicleVO> selectVehicle(VehicleQuery vehicleQuery);
    void insert(Vehicle vehicle);

    void update(Vehicle vehicle);

    VehicleVO selectVehicleByLicense(String license);

    void deleteById(Long id);

    void updateNullValue(Vehicle vehicle);
}
